<script lang="ts" setup>
import { reactive } from "vue";
import PublicDialog from "../components/element-plus/PublicDialog.vue";
import { PublicDialogProps } from "#/element-plus";

const dialogInfo = reactive<PublicDialogProps>({
	isOpen: false, // 是否打开弹窗
});
</script>

<template>
	<el-button type="primary" @click="dialogInfo.isOpen = true">primary</el-button>

	<PublicDialog v-bind="dialogInfo" v-model:isOpen="dialogInfo.isOpen">
		<template #content>
			<p>不能拖拽的dialog</p>
		</template>
	</PublicDialog>
</template>

<style scoped></style>
